common/memory: fix an XSM error path
authorJan Beulich <jbeulich@suse.com>
Mon, 19 Jan 2015 10:59:05 +0000 (11:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Jan 2015 10:59:05 +0000 (11:59 +0100)
commit76d4ff26d9647088353acaf4a56388a354a5d6e9
tree82812f9b8b11e6543b3e23dfa3d178a0865aef67
parent0d2879062076329038860f873dcbeb6f55bd4917
common/memory: fix an XSM error path

XENMEM_{in,de}crease_reservation as well as XENMEM_populate_physmap
return the extent at which failure was detected, not error indicators.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Tim Deegan <tim@xen.org>
xen/common/memory.c